SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author:		Paulo Fournier
-- Create date: 2013-01-28
-- Description:	Altera o estado de um evento
-- =============================================
CREATE PROCEDURE ext.alterarEstadoEvento 
	-- Add the parameters for the stored procedure here
	@id_evento INT, 
	@cancelado BIT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE ext.evento SET cancelado = @cancelado WHERE id_evento = @id_evento
END
GO
